/**
 * @author Java一对一辅导，手把手带你拿高薪！
 * @WeChat：liuliang70
 * @date 2021/10/30 18:40
 */
public class App1 {
    public static void main(String[] args) {
        Integer result1 = new App1().A(20, 10);
        System.out.println(result1);
        Integer result2 = new App1().B(20, 10);
        System.out.println(result2);
        Integer result3 = new App1().C(20, 10);
        System.out.println(result3);
    }

    public Integer A(int x, int y) {
        x = x * 2;
        y = x * y;
        return B(x, y);
    }

    public Integer B(int x, int y) {
        x = x + y;
        y = x - y;
        return C(x, y);
    }

    public Integer C(int x, int y) {
        x = x * y;
        y = x + y;
        return x * y;
    }

}
